<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8"/>
    <title><?php echo $view['config']['webSiteName'] . $view['config']['adminName'] . $view['config']['dashBoard'] ?>
        投票管理</title>
    <?php include_once("common/admin_css_js_header.php");?>
</head>
<body>
<!-- Header -->
<?php include_once("common/admin_header.php");?>
<!-- End of Header -->
<!-- Page title -->
<div id="pagetitle">
    <div class="wrapper">
        <h1>投票管理 &rarr; <span>投票列表</span></h1>
        <!-- Quick search box -->
        <form action="" method="get"><input class="" type="text" id="q" name="q"/></form>
    </div>
</div>
<!-- End of Page title -->

<!-- Page content -->
<div id="page">
    <!-- Wrapper -->
    <div class="wrapper">
        <!-- Left column/section -->
        <section class="column width6 first">

            <div id="tabs">
                <!--<ul>
                                <li><a class="corner-tl" href="#tabs-date">List by date</a></li>
                                <li><a class="corner-tr" href="#tabs-abc">List by alphabet</a></li>
                            </ul>-->
                <div id="tabs-date">
                    <div class="colgroup">
                        <div class="width3 column first">
                            <p>总记录数:<?php echo $view['pagination']['totalCount']; ?></p>
                        </div>
                        <div class="width3 column">
                            <p class="pagination ta-right">
                                <?php echo $view['pagination']['code']; ?>
                            </p>
                        </div>
                    </div>
                    <div class="clearfix"></div>
                    <hr/>
                    <table class="stylized full">
                        <thead>
                        <tr>
                            <th>标题</th>
                            <th>投票量</th>
                            <th>创建时间</th>
                        </tr>
                        </thead>
                        <tbody>
                        <?php foreach ($view['pagination']['data'] as $value) { ?>
                        <tr>
                            <td><?php echo $value['title'] ?></td>
                            <td><?php echo $value['amount'] ?></td>
                            <td><?php echo $value['createDate'] ?></td>
                        </tr>
                            <?php } ?>
                        </tbody>
                    </table>
                </div>
                <div class="colgroup">
                    <div class="width3 column first">
                         <p>总记录数:<?php echo $view['pagination']['totalCount']; ?></p>
                    </div>
                    <div class="width3 column">
                        <p class="pagination ta-right">
                            <?php echo $view['pagination']['code']; ?>
                        </p>
                    </div>
                </div>
                <div class="clearfix"></div>

            </div>

        </section>
        <!-- End of Left column/section -->

        <!-- Right column/section -->
        <aside class="column width2">
            <p class="leading"><a href="#" class="btn btn-special btn-green"><img
                    SRC="<?php echo $view['config']['resource_domain'];?>/img/add.png" class="icon"
                    alt=""/>新建投票</a></p>

           <!-- <div class="box">
                You are now using <b class="big">72%</b> of your allowed storage capacity.
                <div id="capacity" class="progress progress-green"><span><b></b></span></div>
            </div>-->
            <!--<div class="content-box">
                <header>
                    <h3>Tags</h3>
                </header>
                <section>
                    <div class="tagcloud">
                        <a href="#" class="tag1">lorem</a> <a href="#" class="tag5">ipsum</a> <a href="#" class="tag1">dolor</a>
                        <a href="#" class="tag3">sit</a> <a href="#" class="tag1">amet</a>
                    </div>
                </section>
            </div>-->
        </aside>
        <!-- End of Right column/section -->

    </div>
    <!-- End of Wrapper -->
</div>
<!-- End of Page content -->

<?php include_once("common/admin_footer.php");?>
</body>
</html>